// 使用ifelseif分支结果实现分数分数等级判断
import java.util.Scanner;
public class  ScoreLevelJudgeTest{
	public static void main(String[] args) {
		// 1.提示用户输入考试成绩
		System.out.println("请输入您的考试成绩");
		Scanner sc = new Scanner(System.in);
		int score = sc.nextInt();
		String scoreLevel = "等级E";
		// 2.使用ifelseif分支结果实现分数分数等级判断
		if (score >= 0 && score <= 59) {
			scoreLevel = "等级E";
		}else if (score <= 69) {
			scoreLevel = "等级D";
		}else if (score <= 79) {
			scoreLevel = "等级C";
		}else if (score <= 89) {
			scoreLevel = "等级B";
		}else if (score <= 100) {
			scoreLevel = "等级A";
		}else{
			scoreLevel = "错误的分数：" + score;
		}
		// 3.打印结果
		System.out.println("您的分数等级是: " + scoreLevel);
	}
}